﻿//This file is part of Search Engine by Tomasz Kusienicki.
// 
//This Search Engine is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//any later version.
// 
//Foobar is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
// 
//You should have received a copy of the GNU General Public License
//on <http://www.gnu.org/licenses/>.

using AdminApp1.Common;
using AdminApp1.Models;
using AdminApp1.Presenters;

namespace AdminApp1.Views
{
    public partial class DataControlView : DataControlViewBase
    {
        public DataControlView()
        {
            InitializeComponent();
        }

        private void DataControlViewFormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
        {
            Presenter.HandleDataControlFormClosing(this, e);
        }

        private void BtnDisconnectClick(object sender, System.EventArgs e)
        {
            Presenter.HandleDisconnect();
        }

        private void BtnBusDetailsClick(object sender, System.EventArgs e)
        {
            Presenter.HandleBusDetailsClick();
        }

        private void BtnBusLineClick(object sender, System.EventArgs e)
        {
            Presenter.HandleBusLineClick();
        }

        private void BtnBusStopClick(object sender, System.EventArgs e)
        {
            Presenter.HandleBusStopClick();
        }

        private void BtnMapClick(object sender, System.EventArgs e)
        {
            Presenter.HandleMapClick();
        }

        private void BtnStepDetailsClick(object sender, System.EventArgs e)
        {
            Presenter.HandleStepDetailsClick();
        }

        private void BtnStepClick(object sender, System.EventArgs e)
        {
            Presenter.HandleStepClick();
        }
    }

    public class DataControlViewBase : ViewBase<DataControlView, DataControlPresenter, DataControlModel> { }
}
